const express = require('express');
const router = express.Router();
const feedbackController = require('../controllers/feedback');
const { feedbackSubmitValidator } = require('../middleware/validator');

/**
 * @route POST /api/feedback/submit
 * @desc 提交资源反馈
 * @access Public
 */
router.post('/submit', feedbackSubmitValidator, feedbackController.submitFeedback);

/**
 * @route GET /api/feedback/stats
 * @desc 获取反馈统计数据
 * @access Public
 */
router.get('/stats', feedbackController.getFeedbackStats);

module.exports = router;